package vno.fux.res.pool
{
	import flash.media.Sound;
	import flash.media.SoundChannel;
	
	import vno.fux.res.manager.ILoadTarget;
	import flash.media.SoundTransform;

	public class SoundTarget implements ILoadTarget
	{
		private var _sound:Sound;
		public function SoundTarget()
		{
		}
		
		public function saveData(data:Object):void
		{
			_sound = data as Sound;
		}
		public function play(startTime:Number = 0, loops:int = 0, sndTransform:SoundTransform = null):SoundChannel
		{
			return _sound.play(startTime, loops, sndTransform);
		}
	}
}